home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / mint / filesys / mfs610s.zoo / flist.c < prev    next >
Encoding:
C/C++ Source or Header  |  1994-05-11  |  387 b   |  26 lines

  1. /* Simple inode in use dumper */
  2.  
  3. #include <mintbind.h>
  4. #include <stdio.h>
  5.  
  6.  
  7. #define LSIZE 1024
  8.  
  9. struct
  10. {
  11.     long limit;
  12.     unsigned short lst[LSIZE];
  13. } fl;
  14.  
  15. main(argc,argv)
  16. int argc;
  17. char **argv;
  18. {
  19.  
  20.     long i;
  21.     fl.limit=LSIZE;
  22.     printf("Returned %ld Inodes in use:\n",Dcntl(0x10e,argv[1],&fl));
  23.     for(i=0;i<LSIZE && fl.lst[i];i++) printf("%u\n",fl.lst[i]);
  24.     exit(0);
  25. }
  26.